package com.onec.service.route.service.impl;

import com.onec.service.route.dao.RouteChannelBankRepository;
import com.onec.service.route.entity.RouteChannelBank;
import com.onec.service.route.service.RouteChannelBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author onec
 * @see
 */
@Service
public class RouteChannelBankServiceImpl implements RouteChannelBankService {

    @Autowired
    RouteChannelBankRepository bankRepository;


    @Override
    public RouteChannelBank getRouteChannelBank(String bankCode, long routeChannelId) {
        return bankRepository.findByRouteChannelIdAndBankCode(routeChannelId, bankCode);
    }
}
